<template>
    <div>
        <div>
            <el-table
                    :data="currentData"
                    style="width: 100%"
                    border>
                <el-table-column
                        prop="name"
                        label="姓名"
                >
                </el-table-column>
                <el-table-column
                        prop="password"
                        label="密码"
                >
                </el-table-column>
                <el-table-column
                        prop="sex"
                        label="性别"
                >
                </el-table-column>
                <el-table-column
                        prop="number"
                        label="编号"
                >
                </el-table-column>
                <el-table-column
                        prop="storeId"
                        label="部门"
                >
                </el-table-column>
                <el-table-column
                        prop="baseSalary"
                        label="工资"
                >
                </el-table-column>
                <el-table-column
                        prop="tel"
                        label="电话号码"
                >
                </el-table-column>
            </el-table>
        </div>

        <!--<div style="background-color: white;width: 600px;height: 500px;margin: 0 auto;padding-top: 15px">
          <el-form :model="infoForm">
            <el-form-item label="姓名：" :label-width="formLabelWidth" >
              <el-input v-model="editform.name" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
            <el-form-item label="密码：" :label-width="formLabelWidth">
              <el-input v-model="editform.password" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
            <el-form-item label="性别：" :label-width="formLabelWidth">
              <el-input v-model="editform.sex" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
            <el-form-item label="编号：" :label-width="formLabelWidth">
              <el-input v-model="editform.number" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
            <el-form-item label="部门：" :label-width="formLabelWidth">
              <el-input v-model="editform.storeId" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
            <el-form-item label="工资：" :label-width="formLabelWidth">
              <el-input v-model="editform.baseSalary" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
            <el-form-item label="电话号码：" :label-width="formLabelWidth">
              <el-input v-model="editform.tel" autocomplete="off" disabled="" style="width: 300px;float: left"></el-input>
            </el-form-item>
          </el-form>
        </div>-->
    </div>
</template>

<script>
    import http from '../../http/http'
    import {mapActions} from 'vuex'

    export default {
        name: "",
        data() {
            return {
                formLabelWidth: "150px",
                infoform: {
                    name: '',
                    password: "",
                    sex: "",
                    number: "",
                    storeId: "",
                    baseSalary: "",
                    tel: "",
                },
                formInline: {
                    user: "",
                    region: ""
                },
                search: '',

            };
        },
        created() {
            console.log('个人信息页面');
            console.log(sessionStorage.userName)
            // this.selfInfo();
        },
        computed: {
            currentData() {
                return this.$store.state.cjStore.ygData
            }
        },

        methods: {
            ...mapActions(['selfInfo']),
        }
    };
</script>

<style scoped lang="less"></style>
